﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example03.aspx.cs" Inherits="Chapter12.Example03" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 12-3 使用 base 元素设置表单数据的发送目的地</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <link rel="shortcut icon" href="Example01.Favicon.ico" type="image/x-ico" />
    <base href="http://localhost:59796" />
    <style>
        table {
            font-family: verdana,arial,sans-serif;
            font-size: 11px;
            color: #333333;
            border-width: 1px;
            border-color: #666666;
            border-collapse: collapse;
            word-break: break-all;
            word-wrap: break-word;
            width: 400px;
        }

            table tr {
                height: 40px;
            }

            table th {
                border-width: 1px;
                padding: 8px;
                border-style: solid;
                border-color: #666666;
                background-color: #dedede;
            }

            table td {
                border-width: 1px;
                padding: 8px;
                border-style: solid;
                border-color: #666666;
                background-color: #ffffff;
            }

        col {
            width: 50%;
        }
    </style>
</head>
<body>
    <form method="post">
        <div>
            <input name="fave" />
            <asp:Button ID="button" Text="Submit" OnClick="button_Click" />
            <asp:Button ID="clearButton1" Text="Clear" OnClick="clearButton1_Click" />
        </div>
    </form>
    <table border="1">
        <caption>Form Data</caption>
        <colgroup>
            <col span="1" />
            <col span="1" />
        </colgroup>
        <tr>
            <th>Name</th>
            <th>Value</th>
        </tr>
        <tr>
            <td>
                <asp:Label ID="name" />
            </td>
            <td>
                <asp:Label ID="value" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="view0" />
            </td>
            <td>
                <asp:Label ID="view0Value" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="view1" />
            </td>
            <td>
                <asp:Label ID="view1Value" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="view2" />
            </td>
            <td>
                <asp:Label ID="view2Value" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="allView" />
            </td>
        </tr>
    </table>
</body>
</html>
